package com.dican.portal.login;
import java.sql.Connection;
import javax.naming.InitialContext;
import javax.sql.DataSource;
public class Conexao {
	public static Connection getConnection() throws Exception{
		InitialContext context = new InitialContext(); 
		DataSource ds = (DataSource)context.lookup("java:comp/env/jdbc/postgres");
		return ds.getConnection();
	}
}